#include<stdio.h>
void main()
{
	int num=0;
	int bai,shi,ge;
	for(num=100;num<1000;num++)
	{
		bai=num/100;
	    shi=num/10%10;
		ge=num%10;
		if(num==bai*bai*bai+shi*shi*shi+ge*ge*ge)
			printf("%d   ",num);
	}
	printf("\n");
}
